import en from "./en.json";
import zh from "./cn.json";
import store from "../store";
import { createI18n } from "vue-i18n";

const i18n = createI18n({
  locale: store.state.lang, // 默认语言
  messages: {
    en,
    zh,
  },
});
export default i18n;
